#include "MsgDeleteTableEntry.h"
#include "MsgOK.h"
#include "TableManagementDefs.h"

extern "C"
{
#include <config.h>
#include <epan/epan.h>
#include <epan/packet.h>
}


MsgDeleteTableEntry::MsgDeleteTableEntry(std::string data)
{
    mapType = static_cast<ProtoMappingType> (data[0]);
    
    port = atol(data.substr(2).c_str());
}


POutputMessage MsgDeleteTableEntry::Process(Model *model)
{
    dissector_reset(MappingTypeNames[mapType].c_str(),
                    port
                    );

	return POutputMessage(new MsgOK());
}
